/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 布局样式 */
.layout-container {
    min-height: 100vh;
}

.header {
    position: fixed;
    width: 100%;
    height: 60px;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #303133;
    text-decoration: none;
}

.main-container {
    padding-top: 60px;
    display: flex;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 240px;
    overflow-y: auto;
    transition: width 0.3s;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: 64px;
}

.sidebar-menu {
    border-right: none;
}

.main-content {
    margin-left: 240px;
    flex: 1;
    transition: margin-left 0.3s;
    padding: 20px;
}

.main-content.collapsed {
    margin-left: 64px;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.article-card {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ebeef5;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
}

.article-header {
    padding: 15px;
    border-bottom: 1px solid #ebeef5;
}

.article-title {
    margin: 0;
    font-size: 1.5rem;
    color: #303133;
}

.article-meta {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #909399;
}

.article-content {
    padding: 15px;
}

.article-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.article-summary {
    color: #606266;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-footer {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #ebeef5;
}

.footer {
    text-align: center;
    color: #909399;
    padding: 20px;
    margin-left: 240px;
    transition: margin-left 0.3s;
}

.footer.collapsed {
    margin-left: 64px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .main-content {
        margin-left: 64px;
    }

    .footer {
        margin-left: 64px;
    }

    .sidebar {
        width: 64px;
    }
}
